package net.bezrabotnih.cabinet.client.ui;

import net.bezrabotnih.client.managed.request.CommentProxy;
import net.bezrabotnih.client.managed.request.UserAccountProxy;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasText;
import com.google.gwt.user.client.ui.Hyperlink;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.user.client.ui.Label;

public class CommentBlock extends Composite {

	private static CommentBlockUiBinder uiBinder = GWT
			.create(CommentBlockUiBinder.class);

	interface CommentBlockUiBinder extends UiBinder<Widget, CommentBlock> {
	}

	public CommentBlock() {
		initWidget(uiBinder.createAndBindUi(this));
	}
	
	public CommentBlock(String thumbnailUrl,String name,String text) {
		initWidget(uiBinder.createAndBindUi(this));
		if (thumbnailUrl!=null) thumbnail.setUrl(thumbnailUrl);		
		this.name.setText(name);
		this.text.setText(text);
		
	}
    
	@UiField
    Image thumbnail;
	
	@UiField
	Hyperlink name;
	
	@UiField
	Label text;
	
	
	
	
	


}
